﻿{extend name="public:base" /}

{block name='css'}
<link href="__ADMIN__/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<link href="__ADMIN__/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
{/block}
{block name="js"}
<script>
    var count = "{$count}";
    var stock = "{$stock}";
    var is_show = "{$is_show}";
    $(function(){
        if(is_show == 1 && count > 0)
        swal({
            title: "有"+count+"个商品库存不足"+stock,
            type: "warning",
            cancelButtonText: '取消',
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "查看",
            closeOnConfirm: false
        }, function () {
            window.location.href = "{:url('Manage/goodsList',array('is_stock'=>1))}";
        });
        return false;
    });
</script>
{/block}
